package com.ruoyi.client.mapper;

import com.ruoyi.client.pojo.vo.OrderItemVo;
import com.ruoyi.myshop.domain.OrderItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("ClientOrderItemMapper") //避免与后台管理的重名
public interface OrderItemMapper {

    /**
     * 批量insert订单项数据
     */
    int insertBatch(@Param("orderItems") List<OrderItem> orderItems);

    /**
     * 查询订单项Vo列表By订单Id
     */
    List<OrderItemVo> selectVoListByOrderId(Long orderId);
}
